package com.xf.tourismapp.fragments;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.xf.tourismapp.R;
import com.xf.tourismapp.utils.OkHttpUtils;


public class FoundFragment extends Fragment {

    public FoundFragment() {
        // Required empty public constructor
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        OkHttpUtils.getInstance().doGet("https://api.androidhive.info/json/movies.json", new OkHttpUtils.OkHttpCallBackLinener() {
            @Override
            public void failure(Exception e) {
                Log.i("NETDEBUG", "failure: ");
            }

            @Override
            public void success(String json) {
                Log.i("NETDEBUG", json);
            }
        });
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_found, container, false);
    }
}